package cc.ucanuup.service.blog.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.Table;

import cc.ucanuup.common.jpa.BaseEntity;

@Table(name="TBBLOG_ARTICLE")
@Entity
public class Article extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Column(name="TITLE")
	private String title;
	@Column(name="SECOND_TITLE")
	private String secondTitle;
	@Column(name="STATUS")
	private Integer status;
	
	@Lob
	@Basic(fetch = FetchType.EAGER)
	@Column(name="CONTENT",nullable=true)
	private String content;
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSecondTitle() {
		return secondTitle;
	}

	public void setSecondTitle(String secondTitle) {
		this.secondTitle = secondTitle;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}
